package com.zy.dp.composite.example4;

public class Leaf extends Component
{
	private String name = "";

	public Leaf(String name)
	{

		this.name = name;
	}

	@Override
	public void printStruct(String preStr)
	{
		System.out.println(preStr + "-" + name);

	}

}
